/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hj7;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *CODIGO TOMADO DE BASE DE https://www.youtube.com/watch?v=W81Qzuz4qH0
 * @author Sesh Venugopal. New Jersey. 2013
 * @
 * 
 * hoja de trabajo 7
 * yucely beb 12537
 * victor fuentes 12298
 * clase generada por netbeans para utilizar una heap para representar a golfistas
 * 
 */
public class GolferTest {
    
    public GolferTest() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of compareTo method, of class Golfer.
     */
    @Test
    public void testCompareTo() {
        System.out.println("compareTo");
       
        Golfer instance = new Golfer("golfist",5);
        Golfer instance2 = new Golfer("golfist2",10);
        int expResult = 1;
        int result = instance.compareTo(instance2);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }

    /**
     * Test of toString method, of class Golfer.
     */
    @Test
    public void testToString() {
        System.out.println("toString");
        Golfer instance = new Golfer("golfista",5);
        String expResult = "golfista 5";
        String result = instance.toString();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }
}